from socket import *

def main():
    udpSocket = socket(AF_INET,SOCK_DGRAM)

    udpSocket.bind(("",7799))


    while  True:
        recvData = udpSocket.recvfrom(1024)[0]

        print(recvData.decode("gb2312"))

if __name__ == "__main__":
    main()
